/**
 * ...
 * @author Krzysztof Rozalski
 */

package hapi.facebook;

class FacebookQuries {

	public static function countFriends(playerId:String):String {
		return "SELECT uid, has_added_app FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = '" + playerId + "')";
	}
	public static function isFanOf(playerId:String, appId:String):String {
		return "SELECT uid, page_id FROM page_fan WHERE uid='"+playerId+"' AND page_id='"+appId+"'";
	}
}